<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
	var str ="<table border=1px width = 600px >";
	
	for (var i = 9 ; i >= 1; i-- ) {
		str +="<tr>"
		for (var j = 1 ; j <= i; j++) {
			str += "<td";
			if (j % 2 != 0){
				str += " bgColor=red"; 
			}else{
				if (i%2!=0) {
					str += " bgColor=#fff";
				}else{
					str += " bgColor=#D4DBED";
				}
			}
			str += ">";
			str += (j+"*"+ i+ "="+(i*j));
			str += "</td>";
		}
		// document.write("<br>")
		str += "</tr>"
	}
	str += "</table>";
	document.write(str)	;
</script>

</body>
</html>